\[  NN(A,B) =  \frac{1}{|A|} \sum_{ x \in A}  \min_{y \in B} T_d(x,y)  \]
